/*
 * @: 
 * @Version: 1.0
 * @Autor: ziwei
 * @Date: 2021-10-15 16:44:54
 * @LastEditors: ziwei
 * @LastEditTime: 2021-10-17 18:18:10
 */
import Vue from "vue";
import App from "./App";
import createRouter from './router'
import createStore from './store'
//入口文件 它提供需要的vue实例

//如果是服务端渲染 每个人都应该有一个自己的vue实例
export default () => {
  const router = createRouter();
  const store = createStore()
  const app = new Vue({
    router,
    store,
    render: h => h(App)
  })
  return {
    app,router
  }
}